package cms.api.framework.search;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 *
 * 按页返回查询结果的参数类
 *
 * @author kuangjz
 *
 */
@Data
@NoArgsConstructor
@ToString(callSuper=true)
public class PageQueryParams extends QueryParams {
    int startPage = 0;
    int pageSize = 20;
    public QueryParams startPage(int startPage){
        this.startPage=startPage;
        return this;
    }
    public QueryParams pageSize(int pageSize){
        this.pageSize=pageSize;
        return this;
    }
}
